<%-- 
    Document   : Middle_Top
    Created on : Dec 3, 2012, 11:30:05 AM
    Author     : Quang Thao
--%>
<%@page import="Bean.Book_TypeBean"%>
<%@page import="java.sql.*"%>
<%@page import="java.util.*"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<div class="top">
    <div class="MenuItem">
        <ul class="dropdown">
            <%
                BO.Book_TypeBO btBO = new BO.Book_TypeBO();
                List list = new ArrayList<Book_TypeBean>();
                list = btBO.GetAll();
                for (int i=0;i<list.size();i++)
                {
                    Book_TypeBean bt = (Book_TypeBean)list.get(i);
                    if (bt.getStatus().equals("Open"))
                    {
                        out.print("<li class=\"dropdown_trigger\">"
                                + "<a href=\"../Book/ListBook.jsp?type=" 
                                + bt.getID()
                                + "\">" 
                                + bt.getName() + "</a></li>");
                    }
                }
            %>
        </ul>
    </div>
</div>